package by.kniazhych.core.data.game {
	
	/**
	 * ...
	 * @author Boutylin Mikhail
	 */
	
	
	
	public class PeacePosition{
		
		//--------------------------------------------------------------------------
		//
		//  PROPERTIES
		//
		//--------------------------------------------------------------------------
		
		private var _x:uint;
		private var _y:uint;
		
		//--------------------------------------------------------------------------
		//
		//  CONSTRUCTOR
		//
		//--------------------------------------------------------------------------
		
		public function PeacePosition(x:uint, y:uint) {
			_y = y;
			_x = x;
		}
		
		//--------------------------------------------------------------------------
		//
		//  PUBLIC METHODS
		//
		//--------------------------------------------------------------------------
		
		public function toString():String {
			return "{x:" + this._x + ", y:" + this._y + "}";
		}
		
		//--------------------------------------------------------------------------
		//
		//  INTERNAL FUNCTIONS
		//
		//--------------------------------------------------------------------------
		
		internal function $changePosition(x:uint, y:uint):void {
			this._x = x;
			this._y = y;
		}
		
		//--------------------------------------------------------------------------
		//
		//  PROPERTIE ACSESSORS
		//
		//--------------------------------------------------------------------------
		
		public function get x():uint { return this._x; }
		public function get y():uint { return this._y; }
		
	}

}